import instance from './instance';
import { convertRESTAPI } from '../util';

/** 消费记录 */
function record_consumptionRecords_post(opts) {
  return instance({
    method: 'post',
    url:  '/record/consumptionRecords',
    opts: opts
  });
}

/** 划卡记录--疗程卡 */
function record_cardRecords_post(opts) {
  return instance({
    method: 'post',
    url:  '/record/cardRecords',
    opts: opts
  });
}

/** 划卡记录--会员卡 */
function record_memberRecords_post(opts) {
  return instance({
    method: 'post',
    url:  '/record/memberRecords',
    opts: opts
  });
}

/** 我的套卡 */
function order_userCoursecards_post(opts) {
  return instance({
    method: 'post',
    url:  '/order/userCoursecards',
    opts: opts
  });
}

/** 我的储值卡 */
function order_userMemberships_post(opts) {
  return instance({
    method: 'post',
    url:  '/order/userMemberships',
    opts: opts
  });
}

/** 取消预约 */
function order_cancelOrder_post(opts) {
  return instance({
    method: 'post',
    url:  '/order/cancelOrder',
    opts: opts
  });
}

/** 我的订单列表 */
function order_searchUserOrders_post(opts) {
  return instance({
    method: 'post',
    url:  '/order/searchUserOrders',
    opts: opts
  });
}

/** 查看预约详情 */
function order_orderInfo_post(opts) {
  return instance({
    method: 'post',
    url:  '/order/orderInfo',
    opts: opts
  });
}

/** 确认预约 */
function order_confirmOrder_post(opts) {
  return instance({
    method: 'post',
    url:  '/order/confirmOrder',
    opts: opts
  });
}

/** 美容师列表 */
function common_storeStaffs_post(opts) {
  return instance({
    method: 'post',
    url:  '/common/storeStaffs',
    opts: opts
  });
}

/** 项目列表 */
function common_storeItems_post(opts) {
  return instance({
    method: 'post',
    url:  '/common/storeItems',
    opts: opts
  });
}

/** 首页 */
function home_homeInfo_post(opts) {
  return instance({
    method: 'post',
    url:  '/home/homeInfo',
    opts: opts
  });
}

/** 退出登录 */
function login_loginout_post(opts) {
  return instance({
    method: 'post',
    url:  '/login/loginout',
    opts: opts
  });
}

/** 登录 */
function login_loginUser_post(opts) {
  return instance({
    method: 'post',
    url:  '/login/loginUser',
    opts: opts
  });
}

/** 发送短信验证码 */
function login_sendCode_post(opts) {
  return instance({
    method: 'post',
    url:  '/login/sendCode',
    opts: opts
  });
}

export {
  record_consumptionRecords_post,
  record_cardRecords_post,
  record_memberRecords_post,
  order_userCoursecards_post,
  order_userMemberships_post,
  order_cancelOrder_post,
  order_searchUserOrders_post,
  order_orderInfo_post,
  order_confirmOrder_post,
  common_storeStaffs_post,
  common_storeItems_post,
  home_homeInfo_post,
  login_loginout_post,
  login_loginUser_post,
  login_sendCode_post
};
